source 'https://github.com/CocoaPods/Specs.git'

platform :ios, '9.0'

# 去掉烦人的警告
inhibit_all_warnings!

target 'GKPhotoBrowserDemo' do
  use_frameworks!
  
  pod 'AFNetworking'
  pod 'SDWebImage'
  pod 'YYWebImage', '~> 1.0.5'
  pod 'GKNavigationBar'
  pod 'YYModel'
  pod 'GKCover'
  pod 'SDAutoLayout'
  pod 'SVProgressHUD'
  pod 'TZImagePickerController'

end

post_install do |installer|
    installer.pods_project.targets.each do |target|
        target.build_configurations.each do |config|
            config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '9.0'
        end
    end
    
    # 移除MobileCorServices弃用警告
    MCSFramework = installer.pods_project.frameworks_group["iOS"]["MobileCoreServices.framework"]
    MCSFramework.referrers.each do |ref|
        if ref.isa == "PBXBuildFile"
            ref.remove_from_project
        end
    end
    MCSFramework.remove_from_project
    
    # 移除AssetsLibrary弃用警告
    ALFramework = installer.pods_project.frameworks_group["iOS"]["AssetsLibrary.framework"]
    ALFramework.referrers.each do |ref|
        if ref.isa == "PBXBuildFile"
            ref.remove_from_project
        end
    end
    ALFramework.remove_from_project
end
